import { IssmNoticItem } from "../view/msgbroad/IssmNoticItem";
import { Global } from "../../../com/gengine/global/Global";
import { ObjectPool } from "../../../com/gengine/utils/pools/ObjectPool";
//class MsgIssmNoticeItemPanel
    
    export  class MsgIssmNoticeItemPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            mouseEnabled = false;
            mouseChildren = false;
            return;
        }

        public addItem(arg1: IssmNoticItem): void
        {
            this.addChild(arg1);
            arg1.x = (Global.stage.stageWidth - arg1.width) / 2;
            arg1.y = 135;
            return;
        }

        /* internal  */onNoticeHide(arg1: IssmNoticItem): void
        {
            removeChild(arg1);
            arg1.dispose();
            ObjectPool.disposeObject(arg1, IssmNoticItem);
            return;
        }

        public removeAllItem(): void
        {
            while (this.numChildren > 0) 
            {
                this.removeChildAt(0);
            }
            return;
        }
    }
